import {zyRequest} from  './index'

export function getSearchHot(){
  return zyRequest.get({
    url:
   "/search/hot"
  })
}

export function  getSerachSuggest(keywords){
  return zyRequest.get({
    url:"/search/suggest",
    data:{
      keywords,
      type:"mobile"
    }
  })
}
export function  getSerachResult(keywords,limit=30,offset=0,type=1){
  return zyRequest.get({
    url:"/search",
    data:{
      keywords
    }
  })
}